-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (35 loc) · 1.08 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
from setuptools import setup, find_packages
import requests
USERNAME = "umihico"
REPONAME = "microdb"
github_api_url = f"https://api.github.com/repos/{USERNAME}/{REPONAME}"
description = requests.get(github_api_url).json()['description']
requirements = [
]
dirname = "version_texts/"
def _version_increment():
with open('version_texts/version_raw.txt', 'r') as f:
version = int(float(f.read()))
version += 1
version = str(version)
with open('version_texts/version_raw.txt', 'w') as f:
f.write(version)
version = '.'.join(str(version).zfill(3))
with open('version_texts/version_digitgood.txt', 'w') as f:
f.write(version)
return version
setup(
name=REPONAME,
version=_version_increment(),
description=description,
url=f'https://github.com/{USERNAME}/{REPONAME}',
author=USERNAME,
author_email=f'{USERNAME}@users.noreply.github.com',
license='MIT',
keywords='database',
packages=find_packages(),
install_requires=requirements,
classifiers=[
'Programming Language :: Python :: 3.6',
],
)