1 | #!/usr/bin/env python |
||
2 | |||
3 | import os |
||
4 | |||
5 | from setuptools import find_packages, setup |
||
6 | |||
7 | exec(open("codicefiscale/metadata.py").read()) |
||
8 | |||
9 | package_name = "python-codicefiscale" |
||
10 | package_url = f"https://github.com/fabiocaccamo/{package_name}" |
||
11 | package_path = os.path.abspath(os.path.dirname(__file__)) |
||
12 | download_url = f"{package_url}/archive/{__version__}.tar.gz" |
||
13 | documentation_url = f"{package_url}#readme" |
||
14 | issues_url = f"{package_url}/issues" |
||
15 | sponsor_url = "https://github.com/sponsors/fabiocaccamo/" |
||
16 | twitter_url = "https://twitter.com/fabiocaccamo" |
||
17 | |||
18 | long_description_file_path = os.path.join(package_path, "README.md") |
||
19 | long_description_content_type = "text/markdown" |
||
20 | long_description = "" |
||
21 | try: |
||
22 | with open(long_description_file_path, "r", encoding="utf-8") as f: |
||
23 | long_description = f.read() |
||
24 | except IOError: |
||
25 | pass |
||
26 | |||
27 | setup( |
||
28 | name=package_name, |
||
29 | packages=find_packages(exclude=["contrib", "docs", "tests*"]), |
||
30 | include_package_data=True, |
||
31 | version=__version__, |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
32 | description=__description__, |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
33 | long_description=long_description, |
||
34 | long_description_content_type=long_description_content_type, |
||
35 | author=__author__, |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
36 | author_email=__email__, |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
37 | url=package_url, |
||
38 | download_url=download_url, |
||
39 | project_urls={ |
||
40 | "Documentation": documentation_url, |
||
41 | "Issues": issues_url, |
||
42 | "Funding": sponsor_url, |
||
43 | "Twitter": twitter_url, |
||
44 | }, |
||
45 | keywords=[ |
||
46 | "codicefiscale", |
||
47 | "codice", |
||
48 | "fiscale", |
||
49 | "cf", |
||
50 | "fiscal code", |
||
51 | "italia", |
||
52 | "italy", |
||
53 | ], |
||
54 | install_requires=[ |
||
55 | "python-dateutil ~= 2.8.0, < 3.0.0", |
||
56 | "python-fsutil >= 0.8.0, < 1.0.0", |
||
57 | "python-slugify >= 7.0.0, < 8.0.0", |
||
58 | ], |
||
59 | tests_require=[], |
||
60 | classifiers=[ |
||
61 | "Development Status :: 5 - Production/Stable", |
||
62 | "Environment :: Web Environment", |
||
63 | "Intended Audience :: Developers", |
||
64 | "License :: OSI Approved :: MIT License", |
||
65 | "Natural Language :: English", |
||
66 | "Operating System :: OS Independent", |
||
67 | "Programming Language :: Python :: 3", |
||
68 | "Programming Language :: Python :: 3.8", |
||
69 | "Programming Language :: Python :: 3.9", |
||
70 | "Programming Language :: Python :: 3.10", |
||
71 | "Programming Language :: Python :: 3.11", |
||
72 | "Programming Language :: Python :: Implementation :: PyPy", |
||
73 | "Topic :: Software Development :: Build Tools", |
||
74 | ], |
||
75 | test_suite="tests", |
||
76 | ) |
||
77 |