This repository was archived by the owner on Jul 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
38 lines (33 loc) · 1.51 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
from pathlib import Path
from typing import List
from setuptools import setup, find_packages
def parse_requirements(filename: str) -> List[str]:
"""Return requirements from requirements file."""
# Ref: https://stackoverflow.com/a/42033122/
requirements = (Path(__file__).parent / filename).read_text().strip().split('\n')
requirements = [r.strip() for r in requirements]
requirements = [r for r in sorted(requirements) if r and not r.startswith('#')]
return requirements
setup(
name='gitblobts',
author='Ouroboros Chrysopoeia',
author_email='impredicative@users.nomail.github.com',
version='0.0.7',
description='git-backed time-indexed blob storage',
keywords='git bytes mirroring storage time',
long_description=Path(__file__).with_name('README.md').read_text().strip(),
long_description_content_type='text/markdown',
url='https://github.com/impredicative/gitblobts/',
packages=find_packages(exclude=['scripts', 'tests', 'util']),
install_requires=parse_requirements('requirements/install.in'),
python_requires='>=3.7',
package_data={'gitblobts': ['logging.conf']},
classifiers=[ # https://pypi.org/classifiers/
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Topic :: Communications :: File Sharing",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: System :: Archiving",
"Topic :: System :: Archiving :: Mirroring",
],
)