|
3 | 3 | from os import environ |
4 | 4 | from os.path import abspath, dirname, join |
5 | 5 |
|
6 | | -from setuptools import find_packages, setup |
| 6 | +from setuptools import setup |
7 | 7 |
|
8 | 8 | this_dir = abspath(dirname(__file__)) |
9 | | -with open(join(this_dir, "README.rst"), encoding="utf-8") as file: |
10 | | - long_description = file.read() |
11 | 9 |
|
12 | 10 | with open(join(this_dir, "requirements.txt")) as f: |
13 | 11 | requirements = f.read().split("\n") |
14 | 12 |
|
15 | 13 | version = environ.get("VERSION", "1.0.dev0") |
16 | 14 | requirements.extend([f"autoconf=={version}"]) |
17 | 15 |
|
18 | | - |
19 | 16 | def config_packages(directory): |
20 | 17 | paths = [directory.replace("/", ".")] |
21 | 18 | for path, directories, filenames in os.walk(directory): |
22 | 19 | for directory in directories: |
23 | 20 | paths.append(f"{path}/{directory}".replace("/", ".")) |
24 | 21 | return paths |
25 | 22 |
|
26 | | - |
27 | 23 | setup( |
28 | | - name="autoarray", |
29 | 24 | version=version, |
30 | | - description="PyAuto Data Structures", |
31 | | - long_description=long_description, |
32 | | - long_description_content_type="text/x-rst", |
33 | | - url="https://github.com/Jammy2211/PyAutoArray", |
34 | | - author="James Nightingale and Richard Hayes", |
35 | | - author_email="james.w.nightingale@durham.ac.uk", |
36 | | - include_package_data=True, |
37 | | - license="MIT License", |
38 | | - classifiers=[ |
39 | | - "Intended Audience :: Science/Research", |
40 | | - "Topic :: Scientific/Engineering :: Physics", |
41 | | - "License :: OSI Approved :: MIT License", |
42 | | - "Natural Language :: English", |
43 | | - "Operating System :: OS Independent", |
44 | | - "Programming Language :: Python :: 3", |
45 | | - "Programming Language :: Python :: 3.2", |
46 | | - "Programming Language :: Python :: 3.3", |
47 | | - "Programming Language :: Python :: 3.4", |
48 | | - "Programming Language :: Python :: 3.5", |
49 | | - "Programming Language :: Python :: 3.6", |
50 | | - "Programming Language :: Python :: 3.7", |
51 | | - ], |
52 | | - keywords="cli", |
53 | | - packages=find_packages(exclude=["docs", "test_autoarray", "test_autoarray*"]) |
54 | | - + config_packages("autoarray/config"), |
55 | 25 | install_requires=requirements, |
56 | | - setup_requires=["pytest-runner"], |
57 | | - tests_require=["pytest"], |
58 | 26 | ) |
0 commit comments