-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
65 lines (48 loc) · 2.09 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
54
55
56
57
58
59
60
61
62
63
64
65
# coding: utf-8
"""
pyrebrickable setup.py
"""
import os
from setuptools import setup, find_packages
NAME = "pyrebrickable"
VERSION = os.environ.get('TAG_NAME', 'dev')
REQUIRES = ["decorator", 'appdirs', 'enum34', 'PyYaml', 'sqlalchemy',
"click >=6", "urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
setup(
name=NAME,
use_scm_version=True,
setup_requires=['setuptools_scm'],
long_description="""This is pyrebrickable, tools for the www.rebrickable.com website
It provides:
* an auto-generated rebrickable API (in rebrickable.api)
* a CLI wrapper around that API (in rebrickable.cli)
To use the CLI, first register your API key with `rebrickable register`
Then login with `rebrickable users login`
Afterards, you can use the LEGO API through `rebrickable lego`, to access
data about sets, parts, etc
To use the user API, use `rebrickable user`, to access and modify data about
user sets, set lists ,etc
* a SQLalchemy wrapper around the monthly database dumps (in rebrickable.data)
It uses the monthly data dumps (https://www.rebrickable.com/downloads) and provides
SQLAlchemy models to query the data inside. Data is stored in a local SQLite file
in your user directory (inside %APPDATA% on Windows, ~/.local/share on Linux, ~/Library/Application Support/ on MacOS)
`rebrickable data download` to download csv files from rebrickable
`rebrickable data import` to import them in a database
`rebrickable data reset-db` to reset the database
#EXPERIMENTAL# `rebrickable data download-extra` to download data from rebrickable that are not in the dumps (e.g. MOCs data)
see some examples in examples folder
The full documentation reference is at https://rienafairefr.github.io/pyrebrickable
""",
long_description_content_type='text/markdown',
author='rienafairefr',
author_email="rienafairefr@gmail.com",
url="https://rienafairefr.github.io/pyrebrickable/",
entry_points={
'console_scripts': [
'rebrickable=rebrickable.cli.main:main'
]
},
keywords=["rebrickable"],
packages=find_packages(),
install_requires=REQUIRES,
)