Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace requirements.txt with Pipfile #188

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ matrix:
script: python setup.py flake8 && python setup.py test
- python: pypy3
script: pip install setuptools_scm && python setup.py test

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

[dev-packages]

[packages]
requests-oauthlib = "*"
python-dateutil = "*"
responses = "*"
mock = "*"
setuptools-scm = "*"
PyYAML = "*"
Sphinx = "==1.3.1"
pytest-runner = { version = "<= 3.0.1", markers = "python version == 3.3"}
flake8 = { version = "<= 2.6.2", markers = "python version != 3.* "}
249 changes: 249 additions & 0 deletions Pipfile.lock

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

9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@ by following the examples below.
cd twitter-python-ads-sdk

# install dependencies
pip install -r requirements.txt
pip install pipenv
pipenv install

# active environment
pipenv shell

# run example
pipenv run python examples/manual_request.py

# installing a local unsigned release
pip install -e .
Expand Down
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_version(version_tuple):
platforms=['any'],
classifiers=CLASSIFIERS,
scripts=['bin/twitter-ads'],
install_requires=['pyyaml', 'requests-oauthlib', 'python-dateutil'],
install_requires=['pyyaml', 'requests-oauthlib', 'python-dateutil', 'pipenv'],
packages=find_packages(exclude=['docs', 'tests']),
**extra_opts
)