-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (51 loc) · 1.49 KB
/
setup.py
File metadata and controls
64 lines (51 loc) · 1.49 KB
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
54
55
56
57
58
59
60
61
62
63
64
# -*- coding: utf-8 -*-
from os import path
from setuptools import setup
from dfcon import VERSION, LICENCE, AUTHOR, EMAIL, GIT_URL
package_name = "dfcon"
root_dir = path.abspath(path.dirname(__file__))
def _requirements():
return [
name.rstrip()
for name in open(
path.join(root_dir, "requirements.txt"), encoding="utf-8"
).readlines()
]
def _test_requirements():
return [
name.rstrip()
for name in open(
path.join(root_dir, "test-requirements.txt"), encoding="utf-8"
).readlines()
]
assert VERSION
assert LICENCE
assert AUTHOR
assert EMAIL
assert GIT_URL
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name=package_name,
packages=["dfcon"],
version=VERSION,
license=LICENCE,
install_requires=_requirements(),
tests_require=_test_requirements(),
author=AUTHOR,
author_email=EMAIL,
url=GIT_URL,
description="To make access to the database easier.",
long_description=long_description,
long_description_content_type="text/markdown",
keywords="DataSet, File-Search, File-Controle",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)