-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
53 lines (47 loc) · 1.54 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import os
from setuptools import setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def _get_description():
try:
path = os.path.join(os.path.dirname(__file__), "README.md")
with open(path, encoding="utf-8") as f:
return f.read()
except IOError:
return ""
setup(
name="uk_election_ids",
version="0.7.5",
author="chris48s",
license="MIT",
url="https://github.com/DemocracyClub/uk-election-ids/",
packages=["uk_election_ids"],
package_data={"uk_election_ids": ["data/*.json"]},
description="Create Democracy Club Election Identifiers",
long_description=_get_description(),
long_description_content_type="text/markdown",
extras_require={
"testing": ["coveralls"],
"development": [
"sphinx",
"sphinx_rtd_theme",
"ghp-import",
"pydantic",
"black==23.3.0",
"ruff==0.0.261",
],
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
project_urls={
"Documentation": "https://democracyclub.github.io/uk-election-ids/",
"Source": "https://github.com/DemocracyClub/uk-election-ids/",
},
)