python3: top-level repo fileadjustments: setup, travis, dev.sh

- Add a dev.sh script that sets up a development virtualenv
- Adjust travis.yml to use Xenial
- Adjust setup.py
master
Aldo Cortesi 2019-01-13 15:00:08 +13:00
parent 7900b61db0
commit e98b50c2bc
4 changed files with 18 additions and 9 deletions

View File

@ -1,5 +1,5 @@
sudo: false
dist: trusty
dist: xenial
language: python
matrix:

16
dev.sh Executable file
View File

@ -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\`"

View File

@ -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]

View File

@ -100,13 +100,9 @@ setup(
"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",
],
@ -120,9 +116,6 @@ setup(
install_requires=dependencies,
setup_requires=dependencies,
extras_require={
':python_version=="2.7"': [
'trollius',
],
'ipython': ["ipykernel", "jupyter_console"],
},
packages=['libqtile',