Skip to content

Commit

Permalink
python3: top-level repo fileadjustments: setup, travis, dev.sh
Browse files Browse the repository at this point in the history
- Add a dev.sh script that sets up a development virtualenv
- Adjust travis.yml to use Xenial
- Adjust setup.py
  • Loading branch information
cortesi committed Jan 13, 2019
1 parent 7900b61 commit e98b50c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: false
dist: trusty
dist: xenial
language: python

matrix:
Expand Down
16 changes: 16 additions & 0 deletions dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
set -e
set -x

echo "Creating dev environment in ./venv..."

python3.7 -m venv venv
. venv/bin/activate
pip3.7 install -U pip setuptools
pip3.7 install -r requirements.txt
pip3.7 install -r requirements-dev.txt

echo ""
echo " * Created virtualenv environment in ./venv."
echo " * Installed all dependencies into the virtualenv."
echo " * You can now activate the $(python3 --version) virtualenv with this command: \`. venv/bin/activate\`"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ignore =

[mypy]
mypy_path = stubs
python_version = 2.7
python_version = 3.6
[mypy-_cffi_backend]
ignore_missing_imports = True
[mypy-cairocffi._ffi]
Expand Down
7 changes: 0 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,9 @@ def finalize_options(self):
"License :: OSI Approved :: MIT License",
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: Unix",
"Topic :: Desktop Environment :: Window Managers",
],
Expand All @@ -120,9 +116,6 @@ def finalize_options(self):
install_requires=dependencies,
setup_requires=dependencies,
extras_require={
':python_version=="2.7"': [
'trollius',
],
'ipython': ["ipykernel", "jupyter_console"],
},
packages=['libqtile',
Expand Down

0 comments on commit e98b50c

Please sign in to comment.