Commit graph

70 commits

Author SHA1 Message Date
Micah Jerome Ellison
13b4266ed1 Clean up unneeded TOML modifications and other scaffolding not needed for 3.9 2020-10-10 15:59:53 -07:00
micahellison
3c7dcbadbe
Add support for Python 3.9 build testing (#1018)
* First stab at adding Python 3.9 dev Travis builds
* Dynamically replace Python max version for Python 3.9 beta builds
* Fix allow_failures (3.9-dev, not 3.9) and fix Windows find-and-replace command to allow 3.9
* Fix allow_failures to allow all three Python 3.9 builds to fail
* Use platform-independent Python script to allow all Python versions for 3.9 builds
* Format changes and changing before_install to script for 3.9 builds
* Install toml module to make it possible to run version-changing script before install
* Properly populate before_install step with Mac and Windows Python 3.9, and remove extraneous unused python key
* Add refreshenv to get python3 path included in WIndows
* Ensure MacOS pyenv is up to date and attempt to reference Windows python3 directly
* Use bash-friendly paths in Windows and check to see exactly what the Python 3.9 executable is
* Confirm Python version in Windows and attempt to get pip a different way
* Fiddling with Windows python references
* Remove Python3.6 references and check for Python directory in root directory
* Add Python 3.9 path to Windows build
* Remove pip steps that should be unnecessary
* Add upgrade pip to Windows Python 3.9 build
* Attempt to resolve "access denied" error when upgrading pip on Windows
* Use allow_all_python_version TOML script in nightly build instead of sed
2020-08-17 17:46:13 -07:00
Jonathan Wren
c64a17e97c disable python 3.6 tests 2020-08-01 15:54:13 -07:00
micahellison
64a31e301d
Resolve Travis/Windows/pip issues with upgrade to cryptography 3.0 (#1016)
* add missing dependency
* update cryptography dependency
* Installing poetry with pipx instead of pip
* Fix bad pipx install command
* Remove pipx commands and attempt to solve issue through poetry configuration
* Fix pip install command to include --upgrade as before

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2020-08-01 14:58:45 -07:00
Micah Jerome Ellison
8d702fee9d Add unit testing via pytest (#987)
* Add pytest to project

Includes a couple sample tests, a note in CONTRIBUTING, and inclusion in the makefile

* Include pytest in Travis build
2020-06-20 14:30:15 -07:00
Jonathan Wren
a15e6f7476 update travis config to fix deployment 2020-05-09 15:01:44 -07:00
Jonathan Wren
e5f59d7179 Use gitlab to trigger releases in pipeline (#947) 2020-05-09 14:12:14 -07:00
MinchinWeb
587de366fb Update Windows Python versions (#910)
* [Travis] update Windows Python versions
* Update Python versions to be uniform across the board

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2020-04-18 12:35:46 -07:00
Jonathan Wren
a03445bb84 add pyflakes to dev deps, run pyflakes in CI 2020-04-18 12:35:46 -07:00
Jonathan Wren
d3d3ef4c3e Update Poetry requirements for testing latest Python version (#898)
Poetry errors out if we try to run a different version of Python that
what is specified in the config file. We want to run tests against the
latest Python version so we can see problems before they happen. This
fix updates the config file so Poetry will allow us to test. Nothing is
committed after the update.
2020-04-10 16:18:34 -07:00
Jonathan Wren
87d0c84757 Hotfix for keeping the version in sync in code (testing to come later) (#895)
hotfix for keeping the version in sync in code (testing to come later)
2020-04-10 11:51:56 -07:00
Jonathan Wren
aae55aa193 Update Travis caching to speed up builds (#871) 2020-04-10 11:51:56 -07:00
Jonathan Wren
2a4f5ca5c9 fix up remnants of merge conflicts 2020-04-10 11:51:56 -07:00
Jonathan Wren
302d353c4d Fix up tests and related issues
Upgrade poetry if already installed
Get rid of test function that was causing windows problems
2020-04-10 11:51:56 -07:00
Jonathan Wren
db6b0aa56c Don't re-run tests on deployment (#839)
By the time we get to the deployment step, we've already run these tests
dozens of times. We don't need to run them yet again at deploy time.
2020-04-10 11:51:56 -07:00
Jonathan Wren
bafe7a19ae get rid of debug code 2020-04-10 11:51:56 -07:00
Micah Jerome Ellison
3e1061df5f Fix crashing unicode Travis tests on Windows and fail build if Windows tests fail (#836) 2020-04-10 11:51:56 -07:00
MinchinWeb
cec0beff9a Listing all entries in DayOne Classic journal throws IndexError (#786)
* Reproduce bug in #780
🎵 I have no body, no body to love me... 🎵
The bug is cause by a DayOne entry that has to entry body.

* Deal with empty bodies
Close #780.

* [Travis-CI] add "tree" command to debug missing files
* Fix file location
I have no idea why, but it ran locally fine without issue. Travis is more particular...
2020-04-10 11:51:56 -07:00
Jonathan Wren
e048d1bdf1 unpin poetry version in requirments 2020-04-10 11:51:56 -07:00
Micah Jerome Ellison
738e4459ba Prevent Travis from turning LF to CRLF in Windows 2020-04-10 11:51:56 -07:00
Jonathan Wren
4d4321738e small fixes for travis pipeline 2020-04-10 11:51:56 -07:00
Jonathan Wren
84882c1d98 update deploy stage condition 2020-04-10 11:51:56 -07:00
Jonathan Wren
e6a9a0e3cd add script to generate changelog 2020-04-10 11:51:56 -07:00
Jonathan Wren
f92c789efe fix conditional for deploy step 2020-04-10 11:51:56 -07:00
Jonathan Wren
fcd8a11ae8 use api token instead of username and pw for pypi 2020-04-10 11:51:56 -07:00
Jonathan Wren
968ae6ca98 Change stage so travis doesn't get confused about allowed failures 2020-04-10 11:51:56 -07:00
Jonathan Wren
5c0a2a236a clarify build steps 2020-04-10 11:51:56 -07:00
MinchinWeb
04f6154c93 Apply black formatter to code
[Travis] add a linting stage (via `black`)
[Travis] update as per code review
Remove "Lint" as separate stage; have `black` check the output rather
than run the re-formmater
2020-04-10 11:51:56 -07:00
Manuel Ebert
c8d59727eb Explicitly write Version to file
Delay import of asteval
Use __version__.py instead of VERSION.txt
2020-04-10 11:51:56 -07:00
Jonathan Wren
abc6b53898 [#739] Update tests so that 3.8 is not an allowed failure 2020-04-10 11:51:56 -07:00
Jonathan Wren
eb16fe1130 [#757] update mac python version test to match others 2020-04-10 11:51:56 -07:00
Jonathan Wren
f86fb18d5d [#757] Add fast finish option to travis 2020-04-10 11:51:56 -07:00
Jonathan Wren
d8967ae9d3 [#757] update caching for ci 2020-04-10 11:51:56 -07:00
Jonathan Wren
3c6b8058ff [#757] Be explicit about python versio so travis doesn't get confused 2020-04-10 11:51:56 -07:00
Jonathan Wren
b349f5c477 [#757] Group tests by python version 2020-04-10 11:51:56 -07:00
Jonathan Wren
52934a78e4 [#757] Add more Mac tests for each Python version 2020-04-10 11:51:56 -07:00
Jonathan Wren
aa49dc3eb5 [#757] Add more testing for Windows across multiple Python versions 2020-04-10 11:51:56 -07:00
Jonathan Wren
1b9748e5ce [#757] Clean up travis yaml file for readability 2020-04-10 11:51:55 -07:00
Jonathan Wren
8004ef59af [#757] Take out unneeded quotes around strings in yaml 2020-04-10 11:51:55 -07:00
Jonathan Wren
63f2901bf4 [#757] update CI logic to new format 2020-04-10 11:51:55 -07:00
Jonathan Wren
a704863121 [#757] add explicit os at root per travis config linter 2020-04-10 11:51:55 -07:00
Jonathan Wren
b6bd14fb27 [#757] add stage name to test stage to be explicit 2020-04-10 11:51:55 -07:00
Jonathan Wren
eb4b3ead51 [#757] Add quotes around environment variables to be a little safer 2020-04-10 11:51:55 -07:00
Jonathan Wren
a1392d9c49 [#757] Take out old code (no longer needed) 2020-04-10 11:51:55 -07:00
Jonathan Wren
424e67e23a [#757] Move deploy to it's own stage on CI so it doesn't run multiple
times
2020-04-10 11:51:55 -07:00
MinchinWeb
70c946bc13 [Travis] add testing on Windows and Mac
See #739 (Python 3.8), #619 (Windows)
Appease the Travis gods
[Travis] no auto-ruby
[Travis] include a test in not UTC
see #742
[Travis] Add Python to PATH on Windows
[Travis] Windows: try Python 3.7 for cryptography wheels?
[Travis] Windows tests time out
2020-04-10 11:51:55 -07:00
Peter Schmidbauer
3080d501f2 Clarify currently supported Python versions
The Python 3.8 build currently fails on travis, this should be dealt with in a future PR along with updating the travis config and pyproject.toml
2020-04-10 11:51:55 -07:00
Peter Schmidbauer
b7e2e91af3 Prepare travis for upcoming poetry 1.0 release
The poetry version command will change in poetry 1.0 (see sdispater/poetry#1191). Without any argument, it won't bump the version anymore but instead just print the current version. This will break the current travis before_install. Let's pin poetry to ~0.12.17 for now and change it once poetry v1.0 releases.
2020-04-10 11:51:55 -07:00
Jonathan Wren
851a367569 [#715] Make bot that will auto-increment version in code after deploy 2020-04-10 11:51:55 -07:00
Jonathan Wren
f7953fdd61 ¯\_(ツ)_/¯
[#681] Update version handling in source and travis deployments
[#681] Appease the poetry gods
[#681] Separate local dev from pipeline releases
[#681] take out automated pages deployment (for now), since it broke the
site
2020-04-10 11:51:55 -07:00