Skip to content

Commit

Permalink
release 0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Oct 12, 2019
1 parent 5f993a6 commit ee9e804
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -15,6 +15,8 @@ pyproject.toml
script.py
*.egg-info/
*.wheel
*.snap
*/snap.*
build/
dist/

16 changes: 9 additions & 7 deletions README.md
Expand Up @@ -26,17 +26,17 @@ and [Pep 518 (pyproject.toml)](https://www.python.org/dev/peps/pep-0518/), and s

## Installation
- **Windows** - Download and run
[this installer](https://github.com/David-OConnor/pyflow/releases/download/0.1.6/pyflow-0.1.6-x86_64.msi).
[this installer](https://github.com/David-OConnor/pyflow/releases/download/0.1.7/pyflow-0.1.7-x86_64.msi).
Or, if you have [Scoop](https://scoop.sh) installed, run `scoop install pyflow`.

- **Ubuntu or Debian** - Download and run
[this deb](https://github.com/David-OConnor/pyflow/releases/download/0.1.6/pyflow_0.1.6_amd64.deb).
[this deb](https://github.com/David-OConnor/pyflow/releases/download/0.1.7/pyflow_0.1.7_amd64.deb).

- **Fedora, CentOs, RedHat, or older versions of SUSE** - Download and run
[this rpm](https://github.com/David-OConnor/pyflow/releases/download/0.1.6/pyflow-0.1.6.x86_64.rpm).
[this rpm](https://github.com/David-OConnor/pyflow/releases/download/0.1.7/pyflow-0.1.7.x86_64.rpm).

- **A different Linux distro** - Download this
[standalone binary](https://github.com/David-OConnor/pyflow/releases/download/0.1.6/pyflow)
[standalone binary](https://github.com/David-OConnor/pyflow/releases/download/0.1.7/pyflow)
and place it somewhere accessible by the PATH. For example, `/usr/bin`.

- **Mac** - Build from source using the instructions near the bottom of this page,
Expand Down Expand Up @@ -70,7 +70,7 @@ Pyflow's *raison d'être*, but expose stumbling blocks that may frustrate new us
both when installing and using. Some reasons why this is different:

- It behaves consistently regardless of how your system and Python installations
are configured, and requires no other installations or config to work properly.
are configured.

- It automatically manages Python installations and environments. You specify a Python version
in `pyproject.toml` (if ommitted, it asks), and it ensures that version is used.
Expand Down Expand Up @@ -218,7 +218,8 @@ ipython = { version = "^7.7.0", extras = ["qtconsole"] }
To install from a local pathinstead of `pypi`, use syntax like this:
```toml
[tool.pyflow.dependencies]
numpy= { path = "../numpy" }
# packagename = { path = "path-to-package"}
numpy = { path = "../numpy" }
```

To install from a `git` repo, use syntax like this:
Expand All @@ -227,7 +228,7 @@ To install from a `git` repo, use syntax like this:
saturn = { git = "https://github.com/david-oconnor/saturn.git" } # The trailing `.git` here is optional.
```

`git` and `path` dependencies are currently experimental. If you run into problems with them,
`git`dependencies are currently experimental. If you run into problems with them,
please submit an issue.

To install a package that includes a `.` in its name, enclose the name in quotes.
Expand Down Expand Up @@ -411,6 +412,7 @@ cargo build --release

## Updating
- If installed via `Scoop`, run `scoop update pyflow`.
- If installed via `Snap`, run `snap refresh pyflow`.
- If installed via `Cargo`, run `cargo install pyflow --force`.
- If using an installer or
deb, run the new version's installer or deb. If manually calling a binary, replace it.
Expand Down
3 changes: 2 additions & 1 deletion RELEASE_CHECKLIST.md
Expand Up @@ -20,6 +20,7 @@ works on 19.04, but not vice-versa)
users, and binaries built on other OSes appear not to work on these due to OpenSSL issues.
1. Run `cargo wix` on Windows
1. Zip the Windows `.exe`, along with `README.md` and `LICENSE`.
1. Updated the version in `snapcraft.yml`. Run `snapcraft` on Ubuntu.
1. Updated the version in `snapcraft.yml`. Run `snapcraft`, `snapcraft login`, then
`snapcraft push --release=stable pyflow_x.x.x_amd64.snap` on Ubuntu.
1. Add a release on [Github](https://github.com/David-OConnor/seed/releases), following the format of previous releases.
1. Upload the following binaries to the release page: zipped Windows binary, Linux binary, Msi, Deb, Rpm.
19 changes: 12 additions & 7 deletions snapcraft.yaml
@@ -1,10 +1,11 @@
name: pyflow
version: 0.1.6
summary: A Python
version: 0.1.7
license: MIT
summary: A Python installation and dependency manager.
description: |
Pyflow manages Python installations and dependencies.
**Goals**: Make using and publishing Python projects as simple as possible. Actively
Goals: Make using and publishing Python projects as simple as possible. Actively
managing Python environments shouldn't be required to use dependencies safely. We're attempting
to fix each stumbling block in the Python workflow, so that it's as elegant
as the language itself.
Expand All @@ -14,15 +15,19 @@ description: |
It runs standalone scripts in their
own environments with no config, and project functions directly from the CLI.
It implements [PEP 582 -- Python local packages directory](https://www.python.org/dev/peps/pep-0582/)
and [Pep 518 (pyproject.toml)](https://www.python.org/dev/peps/pep-0518/), and supports Python ≥ 3.4.
confinement: devmode
grade: stable
confinement: strict
#confinement: classic # Can't get strict to work.
base: core18
parts:
pyflow:
plugin: rust
rust-channel: stable
source: .
build-packages: ["pkg-config", "libssl-dev"] # Required to prevent OpenSSL errors.

apps:
pyflow:
command: target/release/pyflow
command: pyflow
# Plugs not required for classic mode.
plugs: ["home", "removable-media", "network", "system-files"]
2 changes: 2 additions & 0 deletions src/main.rs
Expand Up @@ -1384,6 +1384,8 @@ fn main() {
Err(_) => Lock::default(),
};



let lockpacks = lock.package.unwrap_or_else(|| vec![]);

// Now handle subcommands that require info about the environment
Expand Down

0 comments on commit ee9e804

Please sign in to comment.