Remove toml dep from setup.py

This commit is contained in:
Micah Lee 2020-11-02 10:51:14 -08:00
parent da1cd8ae1d
commit b0299ee552
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -22,11 +22,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# This setup.py file is used for flatpak packaging. For other packaging,
# OnionShare uses briefcase.
import toml
import setuptools
with open("../pyproject.toml") as f:
version = toml.loads(f.read())["tool"]["briefcase"]["version"]
for line in f.readlines():
if line.startswith("version = "):
version = line.split('"')[1]
break
setuptools.setup(
name="onionshare",