Skip to content

Commit

Permalink
Pipenv (opengaming#633)
Browse files Browse the repository at this point in the history
* Create Pipfile

* Create Pipfile.lock

* Delete Makefile

* Delete requirements.txt

* Use pipenv in readme

* travis pipenv

* Travis install pipenv
  • Loading branch information
cxong authored Dec 14, 2018
1 parent ac184c0 commit 4ad4926
Show file tree
Hide file tree
Showing 6 changed files with 159 additions and 33 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ virtualenv:
addons:
ssh_known_hosts: sirius.solovyov.net
install:
- pip install -r requirements.txt
- pip install pipenv
- pipenv install
script:
- cyrax
- pipenv run cyrax
- test 6000 -lt $(cat _build/index.html | wc -l)
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || .travis/deploy.sh'
13 changes: 0 additions & 13 deletions Makefile

This file was deleted.

16 changes: 16 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
cyrax = "==2.7"
natsort = "*"
pykwalify = ">=1.6.1"
PyYAML = "*"
Unidecode = "*"

[dev-packages]

[requires]
python_version = "2.7"
135 changes: 135 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,30 +82,22 @@ name: [Name, 'http://www.example.com']
### Pre-requisites
* [Python 2][python]
* [virtualenv][virtualenv]
* [pipenv][pipenv]
### Install
Clone this repository and run inside the directory:
```
virtualenv .env
source .env/bin/activate
make install
pipenv install
```
### Building

Make sure the virtual env is active, if not run:
Simply run the following to build the project into the `_build` directory.

```
source .env/bin/activate
```

Then simply run the following to build the project into the `_build` directory.

```
make
pipenv run cyrax
```

## License
Expand All @@ -120,4 +112,4 @@ See [LICENSE][license]
[license]: LICENSE

[python]: https://www.python.org
[virtualenv]: https://virtualenv.pypa.io
[pipenv]: https://pipenv.readthedocs.io/en/latest/
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

0 comments on commit 4ad4926

Please sign in to comment.