Skip to content

Commit 4e30cb3

Browse files
committed
Adding Travis and including binaries in setup.py
1 parent 6d799a6 commit 4e30cb3

File tree

3 files changed

+33
-10
lines changed

3 files changed

+33
-10
lines changed

.gitignore

-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
*.swatches
2-
.idea
3-
**/published
4-
*.mb
51
*.egg-info
62
dist
73
*.pyc
8-
cover
9-
.coverage
10-
docs/_**
114
build

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: python
2+
python:
3+
- 2.7
4+
install:
5+
script:
6+
- pip install git+git://github.com/abstractfactory/pyblish.git
7+
after_success:
8+
- coveralls
9+
deploy:
10+
provider: pypi
11+
user: mottosso
12+
password:
13+
secure: F7vWBoIB1JbC9b9wtvVmcAgcJwt8MTjjw9d/QcdVQalEKt0296LGbJckBr5djm9wiTr7u2EY8H8PQvaVSD9TjJ2u/XfO6oINmkd/lOklZ3Yvc6A6BkgVSrxZnYvKeGO/rd9/unziAYTP1xi9tYN9FHchjkOIUpc1DuSqZf8cV9s=
14+
on:
15+
tags: true

setup.py

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from setuptools import setup, find_packages
23

34
classifiers = [
@@ -11,10 +12,24 @@
1112
]
1213

1314

15+
package_data = dict()
16+
17+
package_data['PyQt5'] = list()
18+
for subdir in ("plugins/", "qml/", "uic/"):
19+
abspath = os.path.abspath("PyQt5/" + subdir)
20+
for root, dirs, files in os.walk(abspath):
21+
for f in files:
22+
fpath = os.path.join(root, f)
23+
relpath = os.path.relpath(fpath, abspath)
24+
relpath = relpath.replace("\\", "/")
25+
package_data['PyQt5'].append(subdir + relpath)
26+
27+
package_data['PyQt5'].extend(["*.exe", "*.dll", "*.pyd"])
28+
1429
setup(
1530
name='pypiqt5', # To avoid name-clash with existing PyQt5
16-
version="5.3.2",
17-
description='quality assurance for content',
31+
version="0.1.0",
32+
description='PyQt5',
1833
long_description="pypiqt5",
1934
author='Marcus Ottosson',
2035
author_email='[email protected]',
@@ -23,5 +38,5 @@
2338
packages=find_packages(),
2439
zip_safe=False,
2540
classifiers=classifiers,
26-
package_data={},
41+
package_data=package_data
2742
)

0 commit comments

Comments
 (0)