# apollo-flask-sqlalchemy-replication-pkg

## Building and pushing package

**1.** Create virtualenv.

```bash
$ virtualenv -p python3.8 venv
```

Set up .pypirc file
```bash
$ cp ../configs/.pypirc to ~/.pypirc
$ chmod 600 ~/.pypirc
```

**2.** Install local dependencies.

```bash
$ source venv/bin/activate
$ pip install -r requirements/local.txt
```

**3.** Build package
Before this step make sure you changed package version in setup.py

```bash
$ python setup.py sdist bdist_wheel
```

**4.** Push package to private pip server

```bash
$ twine upload --repository pypi dist/*
```
