|
1 | 1 | import codecs |
2 | | - |
3 | | -from setuptools import setup, find_namespace_packages |
4 | 2 | from pathlib import Path |
5 | 3 |
|
| 4 | +from setuptools import find_namespace_packages, setup |
| 5 | + |
6 | 6 | # get current directory |
7 | 7 | here = Path(__file__).parent.absolute() |
8 | 8 | parent_dir = here.parent.absolute() |
9 | 9 |
|
10 | 10 | # get the long description from the README file |
11 | | -with codecs.open(parent_dir / 'README.md', encoding='utf-8') as f: |
| 11 | +with codecs.open(parent_dir / "README.md", encoding="utf-8") as f: |
12 | 12 | long_description = f.read() |
13 | 13 |
|
14 | 14 | # get the version from the parent dir |
15 | | -with open(parent_dir / 'VERSION') as f: |
| 15 | +with open(parent_dir / "VERSION") as f: |
16 | 16 | version = f.read().strip() |
17 | 17 |
|
18 | 18 | # setup the package |
19 | 19 | setup( |
20 | | - name='ohdsi-cohort-diagnostics', |
| 20 | + name="ohdsi-cohort-diagnostics", |
21 | 21 | version=version, |
22 | | - description='Python wrapper for the OHDSI R packages', |
| 22 | + description="Python wrapper for the OHDSI R packages", |
23 | 23 | long_description=long_description, |
24 | | - long_description_content_type='text/markdown', |
25 | | - url='https://github.com/vantage6/python-ohdsi', |
26 | | - packages=find_namespace_packages(include=['ohdsi.*']), |
27 | | - python_requires='>=3.10', |
| 24 | + long_description_content_type="text/markdown", |
| 25 | + url="https://github.com/vantage6/python-ohdsi", |
| 26 | + packages=find_namespace_packages(include=["ohdsi.*"]), |
| 27 | + python_requires=">=3.13", |
28 | 28 | install_requires=[ |
29 | | - 'rpy2==3.5.12', |
30 | | - 'pandas==2.3.1', |
| 29 | + "rpy2==3.5.12", |
| 30 | + "pandas==2.3.1", |
31 | 31 | ], |
32 | | - extras_require={ |
33 | | - 'dev': [] |
34 | | - }, |
| 32 | + extras_require={"dev": []}, |
35 | 33 | package_data={ |
36 | | - 'ohdsi.cohort_diagnostics.data': ['*.json'], |
| 34 | + "ohdsi.cohort_diagnostics.data": ["*.json"], |
37 | 35 | }, |
38 | 36 | # entry_points={ |
39 | 37 | # 'console_scripts': [ |
|
0 commit comments