This repository was archived by the owner on Jan 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (38 loc) · 1.5 KB
/
setup.py
File metadata and controls
40 lines (38 loc) · 1.5 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
import setuptools
import pathlib
import otumat as package
import re
here = pathlib.Path(__file__).parent.resolve()
with open(pathlib.Path(here, 'pip_requirements.txt')) as f:
requirements = ['{pkg} @ {target}#egg={pkg}'.format(
pkg=re.search(r'/([A-Za-z0-9\-]+)\.git', r).group(1),
target=r) if '+' in r else r for r in f.read().splitlines() if '#' not in r]
setuptools.setup(
name=package.__name__,
version=package.__version__,
author="Raphael Guzman",
author_email="raphael.h.guzman@gmail.com",
description="A suite of maintainer tools and utilities for pip packages.",
long_description=pathlib.Path('README.md').read_text(),
long_description_content_type="text/markdown",
url="https://github.com/datajoint/otumat",
packages=setuptools.find_packages(exclude=['tests*']),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={
"distutils.setup_keywords": [
"privkey_path = {}:assert_string".format(package.__name__),
"pubkey_path = {}:assert_string".format(package.__name__),
],
"egg_info.writers": [
".sig = {}:write_arg".format(package.__name__),
".pub = {}:write_arg".format(package.__name__),
],
'console_scripts': [
f'{package.__name__}={package.__name__}.command_line:{package.__name__}'],
},
install_requires=requirements,
)