8000 fix ci by fixing directories (#2) · tfeda/datafusion-python@5ad043e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ad043e

Browse files
authored
fix ci by fixing directories (datafusion-contrib#2)
* fix ci * fix CI
1 parent 113a3c1 commit 5ad043e

File tree

5 files changed

+165
-1465
lines changed

5 files changed

+165
-1465
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
uses: actions/download-artifact@v2
6969
with:
7070
name: python-wheel-license
71-
path: python
71+
path: .
7272

7373
- name: Build Python package
7474
run: maturin build --release --no-sdist --strip
@@ -98,13 +98,13 @@ jobs:
9898
uses: actions/download-artifact@v2
9999
with:
100100
na 10000 me: python-wheel-license
101-
path: python
101+
path: .
102102
- run: cat LICENSE.txt
103103
- name: Build wheels
104104
run: |
105105
export RUSTFLAGS='-C target-cpu=skylake'
106106
docker run --rm -v $(pwd)/..:/io \
107-
--workdir /io/python \
107+
--workdir /io \
108108
konstin2/maturin:v0.11.2 \
109109
build --release --manylinux 2010
110110
- name: Archive wheels

.github/workflows/test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ jobs:
4949
- name: Run Linters
5050
run: |
5151
source venv/bin/activate
52-
flake8 python --ignore=E501
53-
black --line-length 79 --diff --check python
52+
flake8 --exclude venv --ignore=E501
53+
black --line-length 79 --diff --check .
5454
- name: Run tests
5555
run: |
5656
source venv/bin/activate
57-
cd python
5857
maturin develop
5958
RUST_BACKTRACE=1 pytest -v .
6059
env:

.gitignore

Lines changed: 159 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,163 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
/target
19-
venv
18+
19+
# Created by https://www.toptal.com/developers/gitignore/api/python,rust
20+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,rust
21+
22+
### Python ###
23+
# Byte-compiled / optimized / DLL files
24+
__pycache__/
25+
*.py[cod]
26+
*$py.class
27+
28+
# C extensions
29+
*.so
30+
31+
# Distribution / packaging
32+
.Python
33+
build/
34+
develop-eggs/
35+
dist/
36+
downloads/
37+
eggs/
38+
.eggs/
39+
lib/
40+
lib64/
41+
parts/
42+
sdist/
43+
var/
44+
wheels/
45+
share/python-wheels/
46+
*.egg-info/
47+
.installed.cfg
48+
*.egg
49+
MANIFEST
50+
51+
# PyInstaller
52+
# Usually these files are written by a python script from a template
53+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
54+
*.manifest
55+
*.spec
56+
57+
# Installer logs
58+
pip-log.txt
59+
pip-delete-this-directory.txt
60+
61+
# Unit test / coverage reports
62+
htmlcov/
63+
.tox/
64+
.nox/
65+
.coverage
66+
.coverage.*
67+
.cache
68+
nosetests.xml
69+
coverage.xml
70+
*.cover
71+
*.py,cover
72+
.hypothesis/
73+
.pytest_cache/
74+
cover/
75+
76+
# Translations
77+
*.mo
78+
*.pot
79+
80+
# Django stuff:
81+
*.log
82+
local_settings.py
83+
db.sqlite3
84+
db.sqlite3-journal
85+
86+
# Flask stuff:
87+
instance/
88+
.webassets-cache
89+
90+
# Scrapy stuff:
91+
.scrapy
92+
93+
# Sphinx documentation
94+
docs/_build/
95+
96+
# PyBuilder
97+
.pybuilder/
98+
target/
99+
100+
# Jupyter Notebook
101+
.ipynb_checkpoints
102+
103+
# IPython
104+
profile_default/
105+
ipython_config.py
106+
107+
# pyenv
108+
# For a library or package, you might want to ignore these files since the code is
109+
# intended to run in multiple environments; otherwise, check them in:
110+
# .python-version
111+
112+
# pipenv
113+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
114+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
115+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
116+
# install all needed dependencies.
117+
#Pipfile.lock
118+
119+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
120+
__pypackages__/
121+
122+
# Celery stuff
123+
celerybeat-schedule
124+
celerybeat.pid
125+
126+
# SageMath parsed files
127+
*.sage.py
128+
129+
# Environments
130+
.env
20131
.venv
132+
env/
133+
venv/
134+
ENV/
135+
env.bak/
136+
venv.bak/
137+
138+
# Spyder project settings
139+
.spyderproject
140+
.spyproject
141+
142+
# Rope project settings
143+
.ropeproject
144+
145+
# mkdocs documentation
146+
/site
147+
148+
# mypy
149+
.mypy_cache/
150+
.dmypy.json
151+
dmypy.json
152+
153+
# Pyre type checker
154+
.pyre/
155+
156+
# pytype static type analyzer
157+
.pytype/
158+
159 9A25 +
# Cython debug symbols
160+
cython_debug/
161+
162+
### Rust ###
163+
# Generated by Cargo
164+
# will have compiled files and executables
165+
debug/
166+
167+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
168+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
169+
Cargo.lock
170+
171+
# These are backup files generated by rustfmt
172+
**/*.rs.bk
173+
174+
# MSVC Windows builds of rustc generate these, which store debugging information
175+
*.pdb
176+
177+
# End of https://www.toptal.com/developers/gitignore/api/python,rust

0 commit comments

Comments
 (0)
0