Fix not installing extra packages; bump to 0.2.0a7

This commit is contained in:
Xavier Bustamante Talavera 2018-06-23 12:13:20 +02:00
parent eb815a8171
commit ac6c94ebe4
3 changed files with 22 additions and 17 deletions

View File

@ -21,9 +21,9 @@ Devicehub is built with [Teal](https://github.com/bustawin/teal) and
## Installing ## Installing
The requirements are: The requirements are:
- Python 3.5.3 or higher. In debian is `# apt install python3-pip`. - Python 3.5.3 or higher. In debian 9 is `# apt install python3-pip`.
- PostgreSQL 9.6 or higher. In debian is `# apt install postgresql` - PostgreSQL 9.6 or higher. In debian 9 is `# apt install postgresql`
- passlib. In debian is `# apt install python3-passlib`. - passlib. In debian 9 is `# apt install python3-passlib`.
Install Devicehub with *pip*: `pip3 install ereuse-devicehub -U --pre`. Install Devicehub with *pip*: `pip3 install ereuse-devicehub -U --pre`.
@ -42,11 +42,13 @@ app = Devicehub(MyConfig())
Create a PostgreSQL database called *devicehub*: Create a PostgreSQL database called *devicehub*:
```bash ```bash
# su - postgres sudo su - postgres # Change to Postgres main user
postgres $ createdb devicehub postgres $ createdb devicehub # Create main database
postgres $ psql devicehub postgres $ psql devicehub # Access to the database
postgres $ GRANT ALL PRIVILEGES ON DATABASE devicehub TO dhub; postgres $ CREATE USER dhub WITH PASSWORD 'ereuse'; # Create user devicehub uses to access db
postgres $ GRANT ALL PRIVILEGES ON DATABASE devicehub TO dhub; # Give access to the db
postgres $ \q postgres $ \q
exit
``` ```
Create the tables in the database by executing in the same directory Create the tables in the database by executing in the same directory
@ -62,6 +64,9 @@ Finally, run the app:
$ flask run $ flask run
``` ```
The error `flask: command not found` can happen when you are not in a
*virtual environment*. Try executing then `python3 -m flask`.
See the [Flask quickstart](http://flask.pocoo.org/docs/1.0/quickstart/) See the [Flask quickstart](http://flask.pocoo.org/docs/1.0/quickstart/)
for more info. for more info.

View File

@ -1,2 +0,0 @@
[metadata]
description-file = README.md

View File

@ -1,8 +1,11 @@
from setuptools import find_packages, setup from setuptools import find_packages, setup
with open('README.md') as f:
long_description = f.read()
setup( setup(
name="ereuse-devicehub", name='ereuse-devicehub',
version='0.2.0a6', version='0.2.0a7',
packages=find_packages(), packages=find_packages(),
url='https://github.com/ereuse/devicehub-teal', url='https://github.com/ereuse/devicehub-teal',
license='Affero', license='Affero',
@ -10,8 +13,10 @@ setup(
author_email='x.bustamante@ereuse.org', author_email='x.bustamante@ereuse.org',
include_package_data=True, include_package_data=True,
description='A system to manage devices focusing reuse.', description='A system to manage devices focusing reuse.',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[ install_requires=[
'teal>=0.2.0a2', 'teal>=0.2.0a4',
'marshmallow_enum', 'marshmallow_enum',
'ereuse-utils[Naming]>=0.3.0b2', 'ereuse-utils[Naming]>=0.3.0b2',
'psycopg2-binary', 'psycopg2-binary',
@ -20,10 +25,7 @@ setup(
'hashids', 'hashids',
'tqdm', 'tqdm',
'click-spinner', 'click-spinner',
'sqlalchemy-utils', 'sqlalchemy-utils[password, color, babel]',
'sqlalchemy-utils [password]',
'sqlalchemy-utils [color]',
'sqlalchemy-utils [babel]',
'PyYAML' 'PyYAML'
], ],
tests_requires=[ tests_requires=[