Skip to content

Commit 1bf83a1

Browse files
committed
Initial commit.
0 parents  commit 1bf83a1

17 files changed

+1514
-0
lines changed

.gitignore

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# C extensions
6+
*.so
7+
8+
# Distribution / packaging
9+
.Python
10+
env/
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
26+
# PyInstaller
27+
# Usually these files are written by a python script from a template
28+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
29+
*.manifest
30+
*.spec
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
36+
# Unit test / coverage reports
37+
htmlcov/
38+
.tox/
39+
.coverage
40+
.coverage.*
41+
.cache
42+
nosetests.xml
43+
coverage.xml
44+
*,cover
45+
46+
# Translations
47+
*.mo
48+
*.pot
49+
50+
# Django stuff:
51+
*.log
52+
53+
# Sphinx documentation
54+
docs/_build/
55+
56+
# PyBuilder
57+
target/
58+
59+
# Spyder IDE
60+
.spyderproject
61+
.spyderworkspace
62+
63+
# Virtual Environment
64+
.venv/

.gitlab-ci.yml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
stages:
2+
- init
3+
- test
4+
- build
5+
- deploy
6+
- cleanup
7+
8+
variables:
9+
VENV_ROOT: C:\temp\builds
10+
VENV_PY35: C:\temp\builds\python35_x64
11+
PYPI_URL: http://tphweb.tph.local/pypi
12+
WINPYTHON_ENV: C:\WinPython35\scripts\env.bat
13+
14+
# Set environment vars
15+
before_script:
16+
# Create the build dir environment variable.
17+
- set BUILD_DIR=%VENV_PY35%\%CI_PROJECT_ID%
18+
- set BUILD_DIR=%BUILD_DIR%__%CI_PROJECT_NAMESPACE%
19+
- set BUILD_DIR=%BUILD_DIR%__%CI_PROJECT_NAME%
20+
- set BUILD_DIR=%BUILD_DIR%__%CI_PIPELINE_ID%
21+
- set BUILD_DIR=%BUILD_DIR%__%CI_BUILD_REF_NAME%
22+
- echo %BUILD_DIR%
23+
24+
install:
25+
stage: init
26+
when: always
27+
tags:
28+
- python
29+
script:
30+
- call %WINPYTHON_ENV%
31+
- python -m venv --clear %BUILD_DIR%
32+
- call %BUILD_DIR%\Scripts\activate.bat
33+
34+
- python -m pip install --upgrade pip wheel
35+
- python -m pip install -r requirements-dev.txt
36+
37+
test:
38+
stage: test
39+
when: on_success
40+
tags:
41+
- python
42+
script:
43+
- call %WINPYTHON_ENV%
44+
- call %BUILD_DIR%\Scripts\activate.bat
45+
46+
- python -m pytest -v pyerf
47+
48+
build:
49+
stage: build
50+
when: on_success
51+
tags:
52+
- python
53+
only:
54+
- tags
55+
script:
56+
- call %BUILD_DIR%\Scripts\activate.bat
57+
- python setup.py sdist bdist_wheel
58+
artifacts:
59+
paths:
60+
- dist/*
61+
62+
#deploy:
63+
# stage: deploy
64+
# environment:
65+
# name: production
66+
# url: $PYPI_URL/simple/pyerf
67+
# when: on_success
68+
# tags:
69+
# - python
70+
# only:
71+
# - tags
72+
# script:
73+
# - call %BUILD_DIR%\Scripts\activate.bat
74+
# - python -m pip install --upgrade twine
75+
# - dir dist\*.zip /b/s > temp.txt
76+
# # Read that path into an environment variable.
77+
# - set /p VAR=<temp.txt
78+
# - echo %VAR%
79+
# - twine register --repository %PYPI_URL% --repository-url %PYPI_URL% -u '' -p '' %VAR%
80+
# - twine upload --repository %PYPI_URL% --repository-url %PYPI_URL% -u '' -p '' dist/*
81+
82+
clean_up:
83+
stage: cleanup
84+
when: always
85+
tags:
86+
- python
87+
script:
88+
- rd /S /Q %BUILD_DIR%

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#################################
2+
# General setup
3+
#################################
4+
language: python
5+
6+
sudo: false
7+
8+
matrix:
9+
include:
10+
- python: "3.4"
11+
- python: "3.5"
12+
- python: "3.6"
13+
14+
notifications:
15+
email: false
16+
17+
#################################
18+
# Build Lifecycle
19+
#################################
20+
install:
21+
# Start the install of everything
22+
- pip install --upgrade pip wheel
23+
- pip install -r dev-requirements.txt
24+
25+
script:
26+
- pytest -v pyerf

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog for PyErf:
2+
3+
4+
## 0.0.1 (2017-02-22): Project Creation
5+
+ Created project from template.

0 commit comments

Comments
 (0)