|
19 | 19 | # Get package directory
|
20 | 20 | package_directory = os.path.dirname(os.path.abspath(__file__))
|
21 | 21 |
|
22 |
| -# Get package version (env variable or verion file + -local) |
| 22 | +# Get package version (env variable or version file + -local) |
23 | 23 | version_path = os.path.join(package_directory, 'version.txt')
|
24 | 24 | with open(version_path, 'r') as version_file:
|
25 | 25 | version = version_file.read().strip()
|
|
38 | 38 | license='AGPL-3.0',
|
39 | 39 | long_description=long_description,
|
40 | 40 | long_description_content_type='text/markdown',
|
41 |
| - author='Agence Data Services PE Nantes', |
| 41 | + author="Agence Data Services PE Nantes", |
| 42 | + |
42 | 43 | description="Semantic library of the Data Services agency",
|
43 | 44 | url="https://github.com/OSS-Pole-Emploi/words_n_fun",
|
44 | 45 | platforms=['windows', 'linux'],
|
| 46 | + python_requires='>=3.7', |
45 | 47 | package_data={
|
46 | 48 | 'words_n_fun': ['configs/*.json', 'nltk_data/corpora/stopwords/french']
|
47 | 49 | },
|
48 | 50 | include_package_data=True,
|
49 | 51 | install_requires=[
|
50 |
| - 'pandas==1.3.5', |
51 |
| - 'numpy==1.19.5', |
52 |
| - 'nltk>=3.4.5,<3.6', |
53 |
| - 'tqdm==4.62.2', # https://github.com/tqdm/tqdm/issues/780 |
54 |
| - 'simplejson>=3.17.0,<3.17.3', |
55 |
| - 'requests>=2.23.0,<2.25.1', |
56 |
| - 'ftfy>=5.8,<6.0', |
| 52 | + 'pandas>=1.3,<1.4; python_version < "3.8"', |
| 53 | + 'pandas>=1.3,<1.5; python_version >= "3.8"', |
| 54 | + 'numpy>=1.19,<1.22; python_version < "3.8"', |
| 55 | + 'numpy>=1.19,<1.24; python_version >= "3.8"', |
| 56 | + 'nltk>=3.4,<3.8', |
| 57 | + 'ftfy>=5.8,<6.2', |
| 58 | + 'tqdm>=4.40,<4.65', |
| 59 | + 'simplejson>=3.17,<3.18', |
| 60 | + 'requests>=2.23,<2.29', |
57 | 61 | ],
|
58 | 62 | extras_require={
|
59 | 63 | "lemmatizer": ["spacy==3.3.1", "markupsafe==2.0.1", "Cython==0.29.24", "fr-core-news-sm==3.3.0"]
|
|
0 commit comments