Exemplo n.º 1
0
    def setUp(self):  # suppress(N802)
        """Create a temporary directory and put some files in it."""
        super(TestPolysquareLintCommand, self).setUp()
        os.environ["JOBSTAMPS_DISABLED"] = "1"
        self._previous_directory = os.getcwd()

        project_directory = mkdtemp(
            prefix=os.path.join(os.getcwd(), "test_project_dir"))
        os.chdir(project_directory)

        def cleanup_func():
            """Change into the previous dir and remove the project dir."""
            os.chdir(self._previous_directory)
            shutil.rmtree(project_directory)

        self.addCleanup(cleanup_func)
        self.patch(polysquare_setuptools_lint, "sys_exit", Mock())

        with self._open_test_file():
            pass

        with self._open_module_file():
            pass

        with self._open_setup_file() as f:
            # Write a very basic /setup.py file so that pyroma doesn't trip
            # and throw an exception.
            f.write("from setuptools import setup\n" "setup()\n")

        self._distribution = Distribution(
            dict(name="my-package",
                 version="0.0.1",
                 packages=fp(exclude=["test"])))
    def setUp(self):  # suppress(N802)
        """Create a temporary directory and put some files in it."""
        super(TestPolysquareLintCommand, self).setUp()
        os.environ["JOBSTAMPS_DISABLED"] = "1"
        self._previous_directory = os.getcwd()

        project_directory = mkdtemp(prefix=os.path.join(os.getcwd(),
                                                        "test_project_dir"))
        os.chdir(project_directory)

        def cleanup_func():
            """Change into the previous dir and remove the project dir."""
            os.chdir(self._previous_directory)
            shutil.rmtree(project_directory)

        self.addCleanup(cleanup_func)
        self.patch(polysquare_setuptools_lint, "sys_exit", Mock())

        with self._open_test_file():
            pass

        with self._open_module_file():
            pass

        with self._open_setup_file() as f:
            # Write a very basic /setup.py file so that pyroma doesn't trip
            # and throw an exception.
            f.write("from setuptools import setup\n"
                    "setup()\n")

        self._distribution = Distribution(dict(name="my-package",
                                               version="0.0.1",
                                               packages=fp(exclude=["test"])))
Exemplo n.º 3
0
def find_packages(top):
    """
    Find all of the packages.
    """
    import warnings
    warnings.warn('Deprecated, please use setuptools.find_packages',
                  category=DeprecationWarning)
    from setuptools import find_packages as fp
    return fp(top)
Exemplo n.º 4
0
def find_packages(top):
    """
    Find all of the packages.
    """
    from setuptools import find_packages as fp
    return fp(top)
Exemplo n.º 5
0
else:
    ver += ".dev" + dt.now().strftime(dtfmt)

print(f"VERSION {ver}")

""" execute setup """
setup(
    name="aras-oslc-api",
    description="OSLC API implementation to expose Aras ItemTypes in RDF representation.",
    long_description=read("README.md"),
    long_description_content_type="text/markdown",
    url="https://aras.koneksys.com",
    author="Fabio",
    author_email="*****@*****.**",
    keywords=['aras', 'plm', 'oslc', 'rdf', 'json-ld'],
    packages=fp(exclude=["*.tests", "*.tests.*", "tests.*"]),
    install_requires=[
        "python-dotenv",
        "RDFLib",
        "RDFLib-JSONLD",
        "Flask",
        "Flask-RESTx",
        "Flask-Login",
        "Flask-SQLAlchemy",
        "flask_cors",
        "requests",
        "blinker",
    ],
    extras_require={},
    python_requires=">=3.6.0",
    include_package_data=True,