UNPKG

semantic-release-pypi

Version:

semantic-release plugin to publish a python package to PyPI

59 lines 1.78 kB
import path from 'path'; export class DefaultConfig { constructor(config) { this.config = config; } get srcDir() { var _a; return (_a = this.config.srcDir) !== null && _a !== void 0 ? _a : '.'; } get setupPath() { return path.join(this.srcDir, 'setup.py'); } get pyprojectPath() { return path.join(this.srcDir, 'pyproject.toml'); } get distDir() { var _a; return (_a = this.config.distDir) !== null && _a !== void 0 ? _a : 'dist'; } get repoUrl() { var _a; return (_a = this.config.repoUrl) !== null && _a !== void 0 ? _a : 'https://upload.pypi.org/legacy/'; } get repoUsername() { var _a; return (_a = this.config.repoUsername) !== null && _a !== void 0 ? _a : '__token__'; } get repoToken() { var _a; return (_a = this.config.repoToken) !== null && _a !== void 0 ? _a : ''; } get pypiPublish() { var _a; return (_a = this.config.pypiPublish) !== null && _a !== void 0 ? _a : true; } get gpgSign() { var _a; return (_a = this.config.gpgSign) !== null && _a !== void 0 ? _a : false; } get gpgIdentity() { return this.config.gpgIdentity; } get envDir() { var _a; return (_a = this.config.envDir) !== null && _a !== void 0 ? _a : '.venv'; } get installDeps() { var _a; return (_a = this.config.installDeps) !== null && _a !== void 0 ? _a : true; } get versionCmd() { return this.config.versionCmd; } get skipIfConflict() { var _a; return (_a = this.config.skipIfConflict) !== null && _a !== void 0 ? _a : false; } } //# sourceMappingURL=default-options.js.map